package com.pony.service.impl;

import com.pony.dao.CpMapper;
import com.pony.entity.Cp;
import com.pony.service.CpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("cpService")
public class CpServiceImpl implements CpService {

    @Autowired
    private CpMapper cpMapper;

    @Override
    public List<Cp> getAllCp() {
        return cpMapper.getAllCp();
    }

    @Override
    public int cpAdd(Cp cp) {
        return cpMapper.cpAdd(cp);
    }
}
